package com.smart.manager.product.entities.views;

import com.smart.common.entities.core.BaseView;
import io.ebean.annotation.View;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;


/**
 * 游戏管理 服务
 *
 * @author leo
 * @date 2023/10/04
 */
@Data
@Entity
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@View(name = "product_props_serve")
public class PropsServeView extends BaseView {

    /**
     * 品种代码
     */
    @Id
    @NotBlank(message = "服务代码 不能为空")
    @Length(max = 30, message = "服务代码 不能超过30个字符")
    @ApiModelProperty("服务代码")
    private String code;

    @ApiModelProperty("服务名称")
    private String name;

    @ApiModelProperty("档案图标")
    private String icon;

    @ApiModelProperty("售价金币")
    private Integer price;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("触发任务时效")
    private Integer day;

}